<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>Projet Jetpack: Référence du fichier /home/p1006250/lif7-projet-jetpack/src/Score.c</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>


</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">Projet Jetpack
   
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Généré par Doxygen 1.7.6.1 -->
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Page&#160;principale</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Fichiers</span></a></li>
      <li><a href="dirs.html"><span>Répertoires</span></a></li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>Liste&#160;des&#160;fichiers</span></a></li>
      <li><a href="globals.html"><span>Membres&#160;de&#160;fichier</span></a></li>
    </ul>
  </div>
</div>
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
  initNavTree('_score_8c.html','');
</script>
<div id="doc-content">
<div class="header">
  <div class="summary">
<a href="#func-members">Fonctions</a>  </div>
  <div class="headertitle">
<div class="title">Référence du fichier Score.c</div>  </div>
</div><!--header-->
<div class="contents">
<div class="textblock"><code>#include &quot;<a class="el" href="_score_8h_source.html">Score.h</a>&quot;</code><br/>
</div><div class="textblock"><div class="dynheader">
Graphe des dépendances par inclusion de Score.c:</div>
<div class="dyncontent">
<div class="center"><img src="_score_8c__incl.png" border="0" usemap="#_2home_2p1006250_2lif7-projet-jetpack_2src_2_score_8c" alt=""/></div>
<map name="_2home_2p1006250_2lif7-projet-jetpack_2src_2_score_8c" id="_2home_2p1006250_2lif7-projet-jetpack_2src_2_score_8c">
</map>
</div>
</div>
<p><a href="_score_8c_source.html">Aller au code source de ce fichier.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="func-members"></a>
Fonctions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_score_8c.html#aa9b64bf47785778438e880367c2ec66c">scoreInit</a> (<a class="el" href="struct_score.html">Score</a> <a class="el" href="_menu_8h.html#a3a9aeffc30e95b3d937df7f3b58df759">score</a>)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight"><b> Brief Description </b> Initialise le score. <br/>
  <a href="#aa9b64bf47785778438e880367c2ec66c"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_score_8c.html#a8e506e7874b2da2303fdc30a5e2b7cdb">afficheScore</a> (<a class="el" href="struct_score.html">Score</a> <a class="el" href="_menu_8h.html#a3a9aeffc30e95b3d937df7f3b58df759">score</a>)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight"><b> Brief Description </b> Affiche le score. <br/>
  <a href="#a8e506e7874b2da2303fdc30a5e2b7cdb"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_score_8c.html#acc8944de00fe826ed0b6c28fc5fae374">triParSelectionDuMinimum</a> (int *tab, int taille)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight"><b> Brief Description </b> Tri le score. <br/>
  <a href="#acc8944de00fe826ed0b6c28fc5fae374"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_score_8c.html#a538b7c39ed4a11654115be394604d2b7">enregScore</a> (const <a class="el" href="struct_score.html">Score</a> <a class="el" href="_menu_8h.html#a3a9aeffc30e95b3d937df7f3b58df759">score</a>, const char nomfichier[])</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight"><b> Brief Description </b> Enregistre le score. <br/>
  <a href="#a538b7c39ed4a11654115be394604d2b7"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_score_8c.html#a0a8a79edcaa87cb62fca2ea9fa0ce6de">verifScore</a> (const <a class="el" href="struct_score.html">Score</a> <a class="el" href="_menu_8h.html#a3a9aeffc30e95b3d937df7f3b58df759">score</a>, const char nomfichier[])</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight"><b> Brief Description </b> Vérifie le score. <br/>
  <a href="#a0a8a79edcaa87cb62fca2ea9fa0ce6de"></a><br/></td></tr>
</table>
<hr/><h2>Documentation des fonctions</h2>
<a class="anchor" id="a8e506e7874b2da2303fdc30a5e2b7cdb"></a><!-- doxytag: member="Score.c::afficheScore" ref="a8e506e7874b2da2303fdc30a5e2b7cdb" args="(Score score)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="_score_8h.html#a8e506e7874b2da2303fdc30a5e2b7cdb">afficheScore</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_score.html">Score</a>&#160;</td>
          <td class="paramname"><em>score</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p><b> Brief Description </b> Affiche le score. <br/>
 </p>
<p><b> Description </b> afficheScore affiche le score durant la partie. <br/>
 </p>
<dl class="params"><dt><b>Paramètres:</b></dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in,out]</td><td class="paramname"><a class="el" href="struct_score.html">Score</a></td><td>Pointeur sur pScore. <br/>
 </td></tr>
  </table>
  </dd>
</dl>

<p>Définition à la ligne <a class="el" href="_score_8c_source.html#l00008">8</a> du fichier <a class="el" href="_score_8c_source.html">Score.c</a>.</p>

</div>
</div>
<a class="anchor" id="a538b7c39ed4a11654115be394604d2b7"></a><!-- doxytag: member="Score.c::enregScore" ref="a538b7c39ed4a11654115be394604d2b7" args="(const Score score, const char nomfichier[])" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="_score_8h.html#a538b7c39ed4a11654115be394604d2b7">enregScore</a> </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="struct_score.html">Score</a>&#160;</td>
          <td class="paramname"><em>score</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char&#160;</td>
          <td class="paramname"><em>nomfichier</em>[]&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p><b> Brief Description </b> Enregistre le score. <br/>
 </p>
<p><b> Description </b> enregScore enregistre les meilleurs score obtenu dans un fichier texte. <br/>
 </p>
<dl class="params"><dt><b>Paramètres:</b></dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in,out]</td><td class="paramname"><a class="el" href="struct_score.html">Score</a></td><td>Pointeur sur pScore. <br/>
 </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">caractère</td><td>Fichier texte. <br/>
 </td></tr>
  </table>
  </dd>
</dl>

<p>Définition à la ligne <a class="el" href="_score_8c_source.html#l00034">34</a> du fichier <a class="el" href="_score_8c_source.html">Score.c</a>.</p>

<p>Références <a class="el" href="_menu_8c_source.html#l00076">score()</a>, et <a class="el" href="_score_8c_source.html#l00013">triParSelectionDuMinimum()</a>.</p>

<p>Référencé par <a class="el" href="_score_8c_source.html#l00073">verifScore()</a>.</p>

<p><div class="dynheader">
Voici le graphe d'appel pour cette fonction :</div>
<div class="dyncontent">
<div class="center"><img src="_score_8c_a538b7c39ed4a11654115be394604d2b7_cgraph.png" border="0" usemap="#_score_8c_a538b7c39ed4a11654115be394604d2b7_cgraph" alt=""/></div>
<map name="_score_8c_a538b7c39ed4a11654115be394604d2b7_cgraph" id="_score_8c_a538b7c39ed4a11654115be394604d2b7_cgraph">
</map>
</div>
</p>

</div>
</div>
<a class="anchor" id="aa9b64bf47785778438e880367c2ec66c"></a><!-- doxytag: member="Score.c::scoreInit" ref="aa9b64bf47785778438e880367c2ec66c" args="(Score score)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="_score_8h.html#aa9b64bf47785778438e880367c2ec66c">scoreInit</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_score.html">Score</a>&#160;</td>
          <td class="paramname"><em>score</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p><b> Brief Description </b> Initialise le score. <br/>
 </p>
<p><b> Description </b> scoreInit initialise le score à 0. <br/>
 </p>
<dl class="params"><dt><b>Paramètres:</b></dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in,out]</td><td class="paramname"><a class="el" href="struct_score.html">Score</a></td><td>Pointeur sur pScore. <br/>
 </td></tr>
  </table>
  </dd>
</dl>

<p>Définition à la ligne <a class="el" href="_score_8c_source.html#l00003">3</a> du fichier <a class="el" href="_score_8c_source.html">Score.c</a>.</p>

<p>Référencé par <a class="el" href="_jeu_8c_source.html#l00004">jeuInit()</a>, et <a class="el" href="_sdl_jeu_8c_source.html#l00138">sdlInit()</a>.</p>

</div>
</div>
<a class="anchor" id="acc8944de00fe826ed0b6c28fc5fae374"></a><!-- doxytag: member="Score.c::triParSelectionDuMinimum" ref="acc8944de00fe826ed0b6c28fc5fae374" args="(int *tab, int taille)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="_score_8h.html#acc8944de00fe826ed0b6c28fc5fae374">triParSelectionDuMinimum</a> </td>
          <td>(</td>
          <td class="paramtype">int *&#160;</td>
          <td class="paramname"><em>tab</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>taille</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p><b> Brief Description </b> Tri le score. <br/>
 </p>
<p><b> Description </b> Trie le score selon l'algorithme du tri par sélection du minimum. <br/>
 </p>
<dl class="params"><dt><b>Paramètres:</b></dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">Entier</td><td>tableau d'entier. <br/>
 </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">entier</td><td>taille. <br/>
 </td></tr>
  </table>
  </dd>
</dl>

<p>Définition à la ligne <a class="el" href="_score_8c_source.html#l00013">13</a> du fichier <a class="el" href="_score_8c_source.html">Score.c</a>.</p>

<p>Référencé par <a class="el" href="_score_8c_source.html#l00034">enregScore()</a>.</p>

</div>
</div>
<a class="anchor" id="a0a8a79edcaa87cb62fca2ea9fa0ce6de"></a><!-- doxytag: member="Score.c::verifScore" ref="a0a8a79edcaa87cb62fca2ea9fa0ce6de" args="(const Score score, const char nomfichier[])" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="_score_8h.html#a0a8a79edcaa87cb62fca2ea9fa0ce6de">verifScore</a> </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="struct_score.html">Score</a>&#160;</td>
          <td class="paramname"><em>score</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char&#160;</td>
          <td class="paramname"><em>nomfichier</em>[]&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p><b> Brief Description </b> Vérifie le score. <br/>
 </p>
<p><b> Description </b> verifScore vérifie si le score obtenu appartient aux dix meilleurs score du fichier texte. <br/>
 </p>
<dl class="params"><dt><b>Paramètres:</b></dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in,out]</td><td class="paramname"><a class="el" href="struct_score.html">Score</a></td><td>Pointeur sur pScore. <br/>
 </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">caractère</td><td>Fichier texte. <br/>
 </td></tr>
  </table>
  </dd>
</dl>

<p>Définition à la ligne <a class="el" href="_score_8c_source.html#l00073">73</a> du fichier <a class="el" href="_score_8c_source.html">Score.c</a>.</p>

<p>Références <a class="el" href="_score_8c_source.html#l00034">enregScore()</a>.</p>

<p>Référencé par <a class="el" href="_sdl_jeu_8c_source.html#l00232">sdlLibere()</a>.</p>

<p><div class="dynheader">
Voici le graphe d'appel pour cette fonction :</div>
<div class="dyncontent">
<div class="center"><img src="_score_8c_a0a8a79edcaa87cb62fca2ea9fa0ce6de_cgraph.png" border="0" usemap="#_score_8c_a0a8a79edcaa87cb62fca2ea9fa0ce6de_cgraph" alt=""/></div>
<map name="_score_8c_a0a8a79edcaa87cb62fca2ea9fa0ce6de_cgraph" id="_score_8c_a0a8a79edcaa87cb62fca2ea9fa0ce6de_cgraph">
</map>
</div>
</p>

</div>
</div>
</div><!-- contents -->
</div>
  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><a class="el" href="_score_8c.html">Score.c</a>      </li>

    <li class="footer">Généré le Lundi Décembre 17 2012 01:09:41 pour Projet Jetpack par
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.6.1 </li>
   </ul>
 </div>


</body>
</html>
